<!DOCTYPE html>
<style>
table {
    border-collapse: collapse;
}
thead, tr {
    break-inside: avoid;
}
</style>
<p>crbug.com/621258: Don't let repeating headers overlap on pages that contain two tables.</p>
<div style="-webkit-columns:3; line-height: 20px; column-fill: auto; height:190px;">
    <table id="top">
        <thead id="top-thead">
            <tr>
                <th colspan="2"><div>Col 1</div></th>
            </tr>
        </thead>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
    </table>
    <br>
    <br>
    <table id="second">
        <thead id="top-thead">
            <tr>
                <th colspan="2"><div>Col 2</div></th>
            </tr>
        </thead>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
        <tr><td>Te</td><td>xt</td></tr>
    </table>
</div>

